const APIV1 = "/api/v1";
const APIV2 = "/api/v2";
const HOST =
// process.env.NODE_ENV === "development"
//     ? "http://192.168.254.15:9000/"
//     : "http://file.sip.feelbang.com:8080/baser/";
process.env.NODE_ENV === "development"
    ? "http://192.168.254.15:9000/"
    : "http://39.108.169.200:8080/baser/";    
// process.env.NODE_ENV === "development"
//     ? "http://39.108.169.200:8080/baser/"
//     : "http://39.108.169.200:8080/baser/";    
module.exports = {
  name: "电子档案管理系统",
  prefix: "antdAdmin",
  // footerText: "Ant Design Admin  © 2017 zuiidea",
  logo: "/logo.png",
  logo1: "/logo1.png",
  iconFontCSS: "/iconfont.css",
  iconFontJS: "/iconfont.js",
  host: HOST,
  YQL: ["http://www.zuimeitianqi.com"],
  CORS: [HOST],
  openPages: ["/login"],
  apiPrefix: "/api/v1",
  api: {
    //auth
    userLogin: "/sys/user/signin",
    userLogout: "/sys/logout",
    userState: "/sys/state", 

    //user
    users: "/sys/user/list",
    userInfo: "/sys/user/info",
    userRemove: "/sys/user/delete",
    userSave: "/sys/user/save",
    userUpdate: "/sys/user/update",

    // log
    logs: "/sys/log/list",
    // menu
    nav: "/sys/menu/nav",
    menus: "/sys/menu/list",
    menuSelect: "/sys/menu/select",
    menuInfo: "/sys/menu/info",
    menuSave: "/sys/menu/save",
    menuUpdate: "/sys/menu/update",
    menuRemove: "/sys/menu/delete",
    // role
    roles: "/sys/role/list",
    roleInfo: "/sys/role/info",
    roleRemove: "/sys/role/delete",
//  roleSave: "/sys/role/save",
	  roleSave: "sys/role/add",
    roleUpdate: "/sys/role/update",
    // manager
    managers: "/sys/user/list",
    managerInfo: "/sys/user/info",
    managerRemove: "/sys/user/delete",
    managerSave: "/sys/user/save",
    managerUpdate: "/sys/user/update",
    //file
    organization: "/business/organization/selectByType", //机构列表
    department: "/business/organization/selectChild", //部门列表
    document: "/business/template/select", //文档信息
    documentInfo: "/business/template/info",
    newDocument: "/business/document/save", //新增文档
    changeDocument: "/business/document/update",
    //search
    // search: "/business/document/list", //搜索文档
    search:"business/documentNotarial/search", //GZC搜索文档
    users: "/sys/user/select", //用户列表
    updateState: "/business/document/updateState", //归档
    deleted: "/business/document/delete", //删除
    // info: "/business/document/info", //详情
    info:"/business/documentNotarial/info", //gzc详情
    depUser: "/sys/user/departmentUser", //部门用户
    send: "/business/document/transfer", //移交文档
    //statistics
    // totals: "/business/document/documentCount", //文档统计
    totals: "/business/documentNotarial/documentCount", //gzc文档统计
    // totalDetails: "/business/document/list", //查看统计详情
    totalDetails: "/business/documentNotarial/search", //查看统计详情

    applicationSave: "/business/application/save", //档案操作申请    0 归档 1 变更 2 销毁
    applicationUpdate: "/business/application/update", //档案操作审批  0 申请中 1 通过 2 拒绝

    //borrowMng
    borrowList: "business/documentNotarial/borrowReturnList", //借阅管理列表
    applicationDetail: "business/borrowReturn/info", //申请审批详情
    borrowSave: "business/borrowReturn/save", //申请借阅
    borrowUpdate: "business/borrowReturn/update", //借阅申请、归还申请、归还审批
    
    //mould
    mouldList:"business/template/list", //模板列表接口
    deleteMould:"business/template/delete",  //删除模板接口
    newMould:"business/template/save",   //新增模板接口
    infoMould:"business/template/info",  //获取模板详情
    updateMould:"business/template/update", //修改模板接口
    
    
    //organization
    organizationList:"business/organization/list", //获取机构的列表
    organizationInfo:"business/organization/info", //获取机构的详情
    newOrganization:"business/organization/save", //新增机构
    updateOrganization:"business/organization/update", //修改机构
    deleteOrganization:"business/organization/delete", //删除机构
    addOrganization:"business/organization/updateParent", //添加下级机构
    allOrganizationlist:"business/organization/selectByType", //获取全部机构（添加下级机构可用）
    addDepartment:"business/department/save",  //添加部门
    deleteDeparttment:"business/department/delete", //删除部门
    allDeparttment:"business/department/select", //获取部门列表
    
    removeOrganization:'business/organization/remove',  //从上级机构中移除下级机构
    //personManagement
   
   //通过用户获取所在机构及子机构的权限
   jurisdiction:'sys/user/userOrganization', 

   //档案打印接口
   applyPrinting:'business/printApplication/save', //申请打印接口
   checkPrinting:'business/printApplication/update', //审核打印接口
   printingList:'business/printApplication/printList', //获取打印列表

    //获取档案历史接口
    getarchivesHistory:'business/application/select', //获取历史列表
    // getHistoryDetails:'business/application/documentBackUpInfo', //获取历史内容详情
    getHistoryDetails:'business/application/documentNotarialBackUpInfo', //GZC获取历史内容详情
    //续借
    borrowAgain:'/business/borrowReturn/renew',  //续借申请和审核的接口

    ///借阅历史
    borrowHistory:'business/documentNotarial/documentNotarialBorrowHistorylist', //借阅历史列表
    borrowHistoryDetails:'business/borrowReturn/documentBorrowHistoryInfolist', //借阅历史详情



  // ============



    //公证处修改 新增档案
    newGzcFile:"business/documentNotarial/save", //新增档案
    newGzcFileSave:"business/documentNotarial/saveAndApply", //新增并申请归档
    changeGzcFile:"business/documentNotarial/update", //修改档案
    changeGzcFileSave:"business/documentNotarial/updateAndApply", //修改档案并归档
    getGzcFileDetails:"business/documentNotarial/info", //获取档案详情
    getGzcFileList:"business/documentNotarial/list",  //获取列表
    updateFileSave:"business/application/updateAndDocumentNotarial", //修改审核档案


    //条形码配置
    codeList:"business/codeResource/select", //条形码列表
    newCode:"business/codeResource/save", //新增条形码
    changeCode:"business/codeResource/update", //更改条形码
    getCodeNumber:"business/codeResource/getCode", //获取条形码号

    //公证处封面信息
    documentCoverInfo:"business/documentCover/info", //封面信息详情
    documentCoverNew:"business/documentCover/save", //新增封面信息
    documentCoverUpdate:"business/documentCover/update", //修改封面信息

    //消息页面
    getAllMessage:"/business/message/list", //获取全部消息
    getNewMessage:"/business/message/unread", //获取未读消息
    readOneMessage:"/business/message/read", //单条消息标记为已读
    readAllMessage:"/business/message/readall", //全部消息标记为已读

    //打印获取详情
    getPrintImg:"/business/billfile/fileAllList", //获取打印的全部图片

    //获取公证事项
    getGZCmatter:"/business/notarialMatters/select", //获取公证事项

    //最新获取承办人建档人的接口
    getPerson:"/sys/user/roleUser", //获取承办人和建当人

    //借阅打印审批流程
    workflowHistory:"/business/documentNotarial/history",
  }
};
